﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="matkhau.ascx.cs" Inherits="eDream.Page.matkhau" %>
<%@ Register Assembly="DevExpress.Web.v12.2, Version=12.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<div style="margin-top: 20px">
     <div class="cloum_textmk">
                    Mật khẩu cũ
                </div>
                <div class="cloum_mk">
                    <dx:ASPxTextBox ID="txtMk0" runat="server" Width="200px" Theme="DevEx" Password="True">
                        <ValidationSettings Display="Dynamic" ValidationGroup="g2" RequiredField-IsRequired="true" ErrorText="Bạn chưa gõ mật khẩu cũ"></ValidationSettings>
                    </dx:ASPxTextBox>
                </div>
                <div class="Clear"></div>
                <div class="cloum_textmk">
                    Mật khẩu mới
                </div>
                <div class="cloum_mk">
                    <dx:ASPxTextBox ID="txtMk1" runat="server" Width="200px" Theme="DevEx" Password="True">
                        <ValidationSettings Display="Dynamic" ValidationGroup="g2" RequiredField-IsRequired="true" ErrorText="Bạn chưa gõ mật khẩu mới">
                             <RegularExpression ErrorText="Mật khẩu phải từ 6 ký tự trở lên" 
                                ValidationExpression="[^\s]{6,50}" />
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                </div>
                <div class="Clear"></div>
                <div class="cloum_textmk">
                    Nhập lại mật khẩu
                </div>
                <div class="cloum_mk">
                    <dx:ASPxTextBox ID="txtMk2" runat="server" Width="200px" Theme="DevEx" Password="True">
                        <ValidationSettings Display="Dynamic" ValidationGroup="g2" RequiredField-IsRequired="true" ErrorText="Nhập lại mật khẩu">

                        </ValidationSettings>
                    </dx:ASPxTextBox>
                     <asp:CompareValidator ID="CompareValidator1" runat="server" 
                        ControlToCompare="txtMk2" ControlToValidate="txtMk1" 
                        ErrorMessage="CompareValidator" ForeColor="#CC0000" ValidationGroup="g2">Mật khẩu không khớp</asp:CompareValidator>
                </div>
                <div class="Clear"></div>
                <div class="cloum_textmk">
                </div>
                <div class="cloum_mk">
                    <dx:ASPxLabel ID="lbThongbao" runat="server" Text=""></dx:ASPxLabel>
                </div>
     <div class="Clear"></div>
    <div class="cloum_textmk">
    </div>
    <div class="cloum_mk">
        <dx:ASPxButton ID="btn" runat="server" Text="Chấp nhận" Theme="iOS" AutoPostBack="false" ValidationGroup="g2" OnClick="btn_Click">
            
        </dx:ASPxButton>
    </div>

</div>